package com.atguigu.mapreduce.source.impl;

import com.atguigu.mapreduce.source.GeneralSource;

public class TextSource extends GeneralSource {
    private final String[] WORDS = {
            "Hello World!",
            "I like banana.",
            "I like apple.",
            "I like pineapple.",
            "I like peach.",
            "I like orange.",
            "I like rice.",
            "I like parrot.",
            "I like rabbit.",
            "I like elephant.",
            "I like tiger."
    };

    @Override
    public String getLine() {
        return WORDS[(int) (WORDS.length * Math.random())];
    }
}
